<?php

class EmailCategoria{

	private $row_id;
	private $row_id_email;
	private $row_id_categoria;
	
	public function setRow_id($arg){
		$this->row_id = $arg;
	}

	public function getRow_id(){
		return $this->row_id;
	}

	public function setRow_id_categoria($arg){
		$this->row_id_categoria = $arg;
	}

	public function getRow_id_categoria(){
		return $this->row_id_categoria;
	}
	
	public function setRow_id_email($arg){
		$this->row_id_email = $arg;
	}

	public function getRow_id_email(){
		return $this->row_id_email;
	}

	public function dbInserir($db){

		$sql = "INSERT INTO email_categoria 
            	VALUES (
	            null,
	            '{$this->getRow_id_email()}',
				'{$this->getRow_id_categoria()}')";

		$db->executar($sql);
	}
}

?>
